package com.jiaming.employee.common.task;

import com.jiaming.employee.attendance.service.IAttendanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author dragon
 * @create 2021-03-04 19:30
 */
@Component
public class TimeTaskXML {

    @Autowired
    IAttendanceService attendanceService;

    @Scheduled(cron = "0 0 1 1 * ?")
    public void task() {
        attendanceService.countDay();
    }
}
